﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="PropertiesAdmin.aspx.cs" Inherits="Admin_Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <h1>uploade new propertie</h1>
     <div>
            <table class="auto-style1">
                <tr>
                    <td>Property Type:</td>
                    <td>
                        <asp:TextBox ID="txtType" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Street Address:</td>
                    <td>
                        <asp:TextBox ID="txtPropetyAddress" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>City:</td>
                    <td>
                        <asp:TextBox ID="txtCity" runat="server"  />
                    </td>
                </tr>
                <tr>
                    <td>State:</td>
                    <td>
                        <asp:TextBox ID="txtState" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Zip:</td>
                    <td>
                        <asp:TextBox ID="txtZip" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Bedrooms:</td>
                    <td>
                        <asp:DropDownList ID="ddlBedrooms" runat="server">
                            <asp:ListItem Value="0">0</asp:ListItem>
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3">3</asp:ListItem>
                            <asp:ListItem Value="4">4</asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            <asp:ListItem Value="6">6</asp:ListItem>
                            <asp:ListItem Value="7">7</asp:ListItem>
                            <asp:ListItem Value="8">8</asp:ListItem>
                            <asp:ListItem Value="9">9</asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>Bathrooms:</td>
                    <td>
                        <asp:DropDownList ID="ddlBathrooms" runat="server">
                            <asp:ListItem Value="0">0</asp:ListItem>
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3">3</asp:ListItem>
                            <asp:ListItem Value="4">4</asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            <asp:ListItem Value="6">6</asp:ListItem>
                            <asp:ListItem Value="7">7</asp:ListItem>
                            <asp:ListItem Value="8">8</asp:ListItem>
                            <asp:ListItem Value="9">9</asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>Price:</td>
                    <td>
                        <asp:TextBox ID="txtPrice" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Squarefeet:</td>
                    <td>
                        <asp:TextBox ID="txtSquarefeet" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Status:</td>
                    <td>
                        <asp:TextBox ID="txtStatus" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Real Estate Agent:</td>
                    <td>
                        <asp:TextBox ID="txtRealEstateAgent" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Real Estate Company:</td>
                    <td>
                        <asp:TextBox ID="txtRealEstateCompany" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>Image:</td>
                    <td>
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="BtnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>
            <br />
            <br />
            <br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;<br />
            &nbsp;
          

        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="DataSet1TableAdapters.HouseTableAdapter">
            <InsertParameters>
                <asp:Parameter Name="PropetyAddress" Type="String" />
                <asp:Parameter Name="City" Type="String" />
                <asp:Parameter Name="State" Type="String" />
                <asp:Parameter Name="Zip" Type="Int32" />
                <asp:Parameter Name="Price" Type="Int32" />
                <asp:Parameter Name="Type" Type="String" />
                <asp:Parameter Name="Bedrooms" Type="Int32" />
                <asp:Parameter Name="Bathrooms" Type="Int32" />
                <asp:Parameter Name="Squarefeet" Type="Decimal" />
                <asp:Parameter Name="Status" Type="String" />
                <asp:Parameter Name="RealEstateAgent" Type="String" />
                <asp:Parameter Name="RealEstateCompany" Type="String" />
                <asp:Parameter Name="ImageUrl" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource>
        </div>
</asp:Content>

